package top.someapp;

import android.view.Gravity;
import com.qmuiteam.qmui.widget.QMUITopBarLayout;
import top.someapp.annotation.BindView;
import top.someapp.base.BaseFragmentActivity;
import top.someapp.user.LoginFragment;

/**
 * @author zwz
 * Created on 2020-04-29
 */
public class MainActivity extends BaseFragmentActivity {

    private static final String TAG = "MainActivity";
    @BindView(R.id.topbar)
    QMUITopBarLayout topBar;

    @Override protected void onStart() {
        super.onStart();
        replaceFragment(new LoginFragment());
    }

    @Override
    protected void initView() {
        topBar.setTitle("登录");
        topBar.setTitleGravity(Gravity.START);
    }

    @Override protected int getContentViewId() {
        return R.layout.activity_main;
    }

    @Override public int getFragmentContainerId() {
        return R.id.fragment_container;
    }
}
